﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace IPC.DbMapper.Migrations
{
    /// <inheritdoc />
    public partial class IPC : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<double>(
                name: "Zoom",
                table: "Tags",
                type: "real",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "integer");

            migrationBuilder.CreateTable(
                name: "SystemConfigs",
                columns: table => new
                {
                    ConfigKey = table.Column<string>(type: "text", nullable: false),
                    ConfigValue = table.Column<string>(type: "text", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SystemConfigs", x => x.ConfigKey);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SystemConfigs");

            migrationBuilder.AlterColumn<int>(
                name: "Zoom",
                table: "Tags",
                type: "integer",
                nullable: false,
                oldClrType: typeof(double),
                oldType: "real");
        }
    }
}
